<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:a4j="http://richfaces.org/a4j"
	template="/pages/templates/templateMain.xhtml">

	<ui:param name="browser_tab_title" value="Edit Bundles" />
	<ui:param name="page_title" value="Edit Bundles" />

	<ui:define name="content">

		<p:panel>

			<f:facet name="header">
				<h:outputText value="Resources Form" />
			</f:facet>

			<h:form id="fileUploadForm">
				<rich:fileUpload
					fileUploadListener="#{editServiceBean.uploadListener}"
					noDuplicate="true" allowFlash="true" listWidth="600px"
					maxFilesQuantity="20">
					<a4j:support event="onuploadcomplete" reRender="resourcesPanel" />
					<a4j:support event="onclear" reRender="fileUploadForm" />
				</rich:fileUpload>
			</h:form>

			<rich:spacer />

			<h:panelGroup id="resourcesPanel">
				<ui:include src="/pages/resource/resourceDataTable.xhtml">
					<ui:param name="resourceList" value="#{service.resources}" />
				</ui:include>
			</h:panelGroup>

			<br />
			<br />

			<h:form>
				<p:commandButton id="buttonCancel" value="Cancel" action="cancel"
					immediate="true" ajax="false" />
				<p:commandButton id="buttonFinish" value="Summary"
					action="#{editServiceBean.toSummary}" ajax="false" />
			</h:form>
		</p:panel>

	</ui:define>
</ui:composition>